package com.sunwayworld.basemodule.coredata.method.dao.impl;

import com.sunwayworld.basemodule.coredata.method.bean.LimsMethodVersionBean;
import com.sunwayworld.basemodule.coredata.method.dao.LimsMethodVersionDao;
import com.sunwayworld.basemodule.coredata.method.mapper.LimsMethodVersionMapper;
import com.sunwayworld.framework.mybatis.dao.MybatisDaoSupport;
import com.sunwayworld.framework.spring.annotation.GikamBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
@GikamBean
public class LimsMethodVersionDaoImpl extends MybatisDaoSupport<LimsMethodVersionBean, Long> implements LimsMethodVersionDao {

    @Autowired
    private LimsMethodVersionMapper limsMethodVersionMapper;

    @Override
    public LimsMethodVersionMapper getMapper() {
        return limsMethodVersionMapper;
    }

    @Override
    public Integer selectMaxVersion(Long methodId) {
        return getMapper().selectMaxVersion(methodId);
    }
}
